//
//  ForwardStatusCell.swift
//  weibopush
//
//  Created by 龚欣 on 15/7/2.
//  Copyright © 2015年 gong. All rights reserved.
//

import UIKit
import FFAutoLayout

class ForwardStatusCell: StatusCell {

   
   override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
    
    insertSubview(tweetStatusLabel, atIndex: 0)

    tweetStatusLabel.preferredMaxLayoutWidth = UIScreen.mainScreen().bounds.width - 18
    
    coverBtn.backgroundColor = UIColor(white: 0.90, alpha: 1.0)
    insertSubview(coverBtn, atIndex: 0)
    
    coverBtn.ff_AlignVertical(ff_AlignType.BottomLeft, referView: contentLabel, size: nil, offset: CGPoint(x: -12, y: 12))
    coverBtn.ff_AlignVertical(ff_AlignType.TopRight, referView: footerView, size: nil)
    
    tweetStatusLabel.ff_AlignInner(ff_AlignType.TopLeft, referView: coverBtn, size: nil, offset: CGPoint(x: 12, y: 12))
    
   let cons = pictureView.ff_AlignVertical(ff_AlignType.BottomLeft, referView: tweetStatusLabel, size: CGSize(width: 290, height: 90), offset: CGPoint(x: 0, y: 4))
    recordPictureCons(cons)
    
    }

   required init(coder aDecoder: NSCoder) {
       fatalError("init(coder:) has not been implemented")
   }

    lazy var coverBtn = UIButton()

}
